<template>
    <div>
        这是第二个首页
<button @click='getData'>11</button>
    </div>
</template>

<script>
    export default {
       methods: {
           getData(){
               this.$router.push('/msg?name='+ this.inputData);
           }
       }, 
    }
</script>

<style scoped>

</style>